home *** CD-ROM | disk | FTP | other *** search
Wrap
SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) NNNNAAAAMMMMEEEE SSSSSSSSWWWWAAAAPPPP, DDDDSSSSWWWWAAAAPPPP, CCCCSSSSWWWWAAAAPPPP, ZZZZSSSSWWWWAAAAPPPP - Swaps two real or complex vectors SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS Single precision Fortran: CCCCAAAALLLLLLLL SSSSSSSSWWWWAAAAPPPP ((((_n,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd sssssssswwwwaaaapppp ((((iiiinnnntttt _n,,,, ffffllllooooaaaatttt *_x,,,, iiiinnnntttt _i_n_c_x,,,, ffffllllooooaaaatttt *_y,,,, iiiinnnntttt _i_n_c_y))));;;; Double precision Fortran: CCCCAAAALLLLLLLL DDDDSSSSWWWWAAAAPPPP ((((_n,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd ddddsssswwwwaaaapppp ((((iiiinnnntttt _n,,,, ddddoooouuuubbbblllleeee *_x,,,, iiiinnnntttt _i_n_c_x,,,, ddddoooouuuubbbblllleeee *_y,,,, iiiinnnntttt _i_n_c_y))));;;; Single precision complex Fortran: CCCCAAAALLLLLLLL CCCCSSSSWWWWAAAAPPPP ((((_n,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd ccccsssswwwwaaaapppp(((( iiiinnnntttt _n,,,, ssssccccssssllll____ccccoooommmmpppplllleeeexxxx *_x,,,, iiiinnnntttt _i_n_c_x,,,, ssssccccssssllll____ccccoooommmmpppplllleeeexxxx *_y,,,, iiiinnnntttt _i_n_c_y))));;;; C++ STL: ####iiiinnnncccclllluuuuddddeeee <<<<ccccoooommmmpppplllleeeexxxx....hhhh>>>> ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd ccccsssswwwwaaaapppp ((((iiiinnnntttt _n,,,, ccccoooommmmpppplllleeeexxxx<<<<ffffllllooooaaaatttt>>>> *_x,,,, iiiinnnntttt _i_n_c_x,,,, ccccoooommmmpppplllleeeexxxx<<<<ffffllllooooaaaatttt>>>> *_y,,,, iiiinnnntttt _i_n_c_y))));;;; Double precision complex Fortran: CCCCAAAALLLLLLLL ZZZZSSSSWWWWAAAAPPPP ((((_n,,,, _x,,,, _i_n_c_x,,,, _y,,,, _i_n_c_y)))) C/C++: ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd zzzzsssswwwwaaaapppp ((((iiiinnnntttt _n,,,, ssssccccssssllll____zzzzoooommmmpppplllleeeexxxx *_x,,,, iiiinnnntttt _i_n_c_x,,,, ssssccccssssllll____zzzzoooommmmpppplllleeeexxxx *_y,,,, iiiinnnntttt _i_n_c_y))));;;; C++ STL: ####iiiinnnncccclllluuuuddddeeee <<<<ccccoooommmmpppplllleeeexxxx....hhhh>>>> ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccssssllll____bbbbllllaaaassss....hhhh>>>> vvvvooooiiiidddd zzzzsssswwwwaaaapppp ((((iiiinnnntttt _n,,,, ccccoooommmmpppplllleeeexxxx<<<<ddddoooouuuubbbblllleeee>>>> *_x,,,, iiiinnnntttt _i_n_c_x,,,, PPPPaaaaggggeeee 1111 SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) ccccoooommmmpppplllleeeexxxx<<<<ddddoooouuuubbbblllleeee>>>> *_y,,,, iiiinnnntttt _i_n_c_y))));;;; IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN These routines are part of the SCSL Scientific Library and can be loaded using either the ----llllssssccccssss or the ----llllssssccccssss____mmmmpppp option. The ----llllssssccccssss____mmmmpppp option directs the linker to use the multi-processor version of the library. When linking to SCSL with ----llllssssccccssss or ----llllssssccccssss____mmmmpppp, the default integer size is 4 bytes (32 bits). Another version of SCSL is available in which integers are 8 bytes (64 bits). This version allows the user access to larger memory sizes and helps when porting legacy Cray codes. It can be loaded by using the ----llllssssccccssss____iiii8888 option or the ----llllssssccccssss____iiii8888____mmmmpppp option. A program may use only one of the two versions; 4-byte integer and 8-byte integer library calls cannot be mixed. The C and C++ prototypes shown above are appropriate for the 4-byte integer version of SCSL. When using the 8-byte integer version, the variables of type iiiinnnntttt become lllloooonnnngggg lllloooonnnngggg and the <<<<ssssccccssssllll____bbbbllllaaaassss____iiii8888....hhhh>>>> header file should be included. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN SSSSSSSSWWWWAAAAPPPP/DDDDSSSSWWWWAAAAPPPP swaps two real vectors. CCCCSSSSWWWWAAAAPPPP/ZZZZSSSSWWWWAAAAPPPP swaps two complex vectors. These routines perform the following vector operation: x <-> y where _x and _y are real or complex vectors. See the NOTES section of this man page for information about the interpretation of the data types described in the following arguments. These routines have the following arguments: _n Integer. (input) Number of vector elements to be swapped. If _n <= 0, these routines return without any computation. _x Array of dimension (_n-1) * |_i_n_c_x| + 1. (input and output) SSSSSSSSWWWWAAAAPPPP: Single precision array. DDDDSSSSWWWWAAAAPPPP: Double precision array. CCCCSSSSWWWWAAAAPPPP: Single precision complex array. ZZZZSSSSWWWWAAAAPPPP: Double precision complex array. Vector to be swapped. _i_n_c_x Integer. (input) Increment between elements of _x. If _i_n_c_x = 0, the results will be unpredictable. PPPPaaaaggggeeee 2222 SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) _y Array of dimension (_n-1) * |_i_n_c_y| + 1. (input and output) SSSSSSSSWWWWAAAAPPPP: Single precision array. DDDDSSSSWWWWAAAAPPPP: Double precision array. CCCCSSSSWWWWAAAAPPPP: single precision omplex array. ZZZZSSSSWWWWAAAAPPPP: Double precision complex array. Vector to be swapped. _i_n_c_y Integer. (input) Increment between elements of _y. If _i_n_c_y = 0, the results will be unpredictable. NNNNOOOOTTTTEEEESSSS These routines are Level 1 Basic Linear Algebra Subprograms (Level 1 BLAS). When working backward (_i_n_c_x < 0 or _i_n_c_y < 0), each routine starts at the end of the vector and moves backward, as follows: _x(1-_i_n_c_x * (_n-1)), _x(1-_i_n_c_x * (_n-2)), ..., _x(1) _y(1-_i_n_c_y * (_n-1)), _y(1-_i_n_c_y * (_n-2)), ..., _y(1) DDDDaaaattttaaaa TTTTyyyyppppeeeessss The following data types are described in this documentation: TTTTeeeerrrrmmmm UUUUsssseeeedddd DDDDaaaattttaaaa ttttyyyyppppeeee Fortran: Array dimensioned _n xxxx((((nnnn)))) Integer IIIINNNNTTTTEEEEGGGGEEEERRRR (IIIINNNNTTTTEEEEGGGGEEEERRRR****8888 for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]]) Single precision RRRREEEEAAAALLLL Double precision DDDDOOOOUUUUBBBBLLLLEEEE PPPPRRRREEEECCCCIIIISSSSIIIIOOOONNNN Single precision complex CCCCOOOOMMMMPPPPLLLLEEEEXXXX Double precision complex DDDDOOOOUUUUBBBBLLLLEEEE CCCCOOOOMMMMPPPPLLLLEEEEXXXX C/C++: Array dimensioned _n xxxx[[[[_n]]]] Integer iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]]) Single precision ffffllllooooaaaatttt Double precision ddddoooouuuubbbblllleeee PPPPaaaaggggeeee 3333 SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) SSSSSSSSWWWWAAAAPPPP((((3333SSSS)))) Single precision complex ssssccccssssllll____ccccoooommmmpppplllleeeexxxx Double precision complex ssssccccssssllll____zzzzoooommmmpppplllleeeexxxx C++ STL: Array dimensioned _n xxxx[[[[_n]]]] Integer iiiinnnntttt (lllloooonnnngggg lllloooonnnngggg for ----llllssssccccssss____iiii8888[[[[____mmmmpppp]]]]) Single precision ffffllllooooaaaatttt Double precision ddddoooouuuubbbblllleeee Single precision complex ccccoooommmmpppplllleeeexxxx<<<<ffffllllooooaaaatttt>>>> Double precision complex ccccoooommmmpppplllleeeexxxx<<<<ddddoooouuuubbbblllleeee>>>> SSSSEEEEEEEE AAAALLLLSSSSOOOO IIIINNNNTTTTRRRROOOO____SSSSCCCCSSSSLLLL(3S), IIIINNNNTTTTRRRROOOO____BBBBLLLLAAAASSSS1111(3S) IIIINNNNTTTTRRRROOOO____CCCCBBBBLLLLAAAASSSS(3S) for information about using the C interface to Fortran 77 Basic Linear Algebra Subprograms (legacy BLAS) set forth by the Basic Linear Algebra Subprograms Technical Forum. PPPPaaaaggggeeee 4444